<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        :root {
            --colour1: #f1c40f;
            --colour2: #2c3e50;
            --speed: 4s;
        }

        html,
        body {
            height: 100%;
            background-color: #1E1E1E
        }

        @-webkit-keyframes slide {
            from {
                background-position-x: 0;
            }

            to {
                background-position-x: 113px;
            }
        }

        @keyframes slide {
            from {
                background-position-x: 0;
            }

            to {
                background-position-x: 113px;
            }
        }

        .container {
            height: 100%;
            display: -webkit-box;
            display: flex;
            -webkit-box-pack: center;
            justify-content: center;
            -webkit-box-align: center;
            align-items: center;
        }

        .container .bar {
            min-height: 100px;
            border-radius: 10px;
            width: calc(113px * 4);
            box-shadow: 0px 10px 13px -6px #2c3e50;
            background-color: var(--colour2);
            background-image: repeating-linear-gradient(45deg, transparent, transparent 40px, var(--colour1) 40px, var(--colour1) 80px);
            -webkit-animation: slide var(--speed) linear infinite;
            animation: slide var(--speed) linear infinite;
            will-change: background-position;
        }

        @media only screen and (max-width: 450px) {
            .container .bar {
                width: calc(113px * 3);
            }
        }

        @media only screen and (max-width: 350px) {
            .container .bar {
                width: calc(113px * 2);
            }
        }
    </style>
</head>

<body>
    <div class='container'>
        <div class='bar'>
        </div>
    </div>
</body>

</html>